<%@ Page Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true"
    CodeFile="AddUpdateBlog.aspx.cs" Inherits="Community_AddUpdateBlog" Title="Untitled Page" %>

<%@ Register Src="../includes/Editor/Editor.ascx" TagName="BlogEditor" TagPrefix="Editor" %>
<%@ Register src="../includes/myAccount.ascx" tagname="myAccount" tagprefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="Server">
    <div class="heading_inner">
        <div class="heading_topic">
            <h2>Post Title</h2>
        </div>
    </div>

    <div class="cl"></div>



    <div class="account_new">

        <div class="acc_nav">
         
            
            <uc3:myAccount ID="myAccount1" runat="server" />
        </div>




        <div class="part_1_blog">
                    <div class="heading_account">
                        <h2>Welcome,</h2>
                        <h3><%=Session["LoginName"]%></h3>
                   
                    </div>

                    <div class="upper_acc">

                        <div class="lft_up_acc"></div>
                        <div class="center_stroke_acc">
                            <div class="form_head_acc">Add/Update Blog</div>
                        </div>
                        <div class="right_up_acc"></div>
                    </div>
            <div style="text-align:center"><span id="ctl00_MainTable_lblMsg"  style="height:50px"></span></div>

                    <div class="doc_rsrc_acc">
                        <table width="686" border="0" cellspacing="3" class="table_info_acc">
                            <tr><td colspan="2" style="text-align:center"><asp:Label id="lblMessage" runat="server" style="color: Red;"></asp:Label></td></tr>
                            <tr>
                                <td width="113">POST TITLE :</td>
                                <td colspan="2"><asp:TextBox runat="server"  CssClass="design" ID="txtBlogTitle" Width="250px"></asp:TextBox>
                                    </td>
                            </tr>

                            <tr valign="top">
                                <td width="113">POST CONTENT :</td>
                                <td colspan="2">
                                    <Editor:BlogEditor runat="server" ID="txtDescription" EnableViewState="true" style="width:250px"   CssClass="design"  IsHtmlEncodeDecode="true" />
                                                    <asp:TextBox ID="txtDescription1" runat="Server" CssClass="generaltext1" Style="width: 300px; height: 80px"
                                                        TextMode="multiline" Visible="false"></asp:TextBox>
                                   </td>
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                                <td width="142">
                                     <asp:Button ID="btnSubmit" runat="server" Text="Post" CssClass="buttonclass"
                                                        OnClick="btnSubmit_Click1" Width="100px" OnClientClick="updateRTE('txtDescription');" Font-Bold="True" />
                                                    &nbsp;&nbsp;
                                   
                                </td>
                                <td width="413">
                                    <asp:LinkButton ID="lnkNewEntry" runat="server"  OnClick="lnkNewEntry_Click" Font-Bold="True" Font-Underline="False"><img src="../images/add_t.png" width="16" height="16" alt="add" />&nbsp;ADD NEW POST</asp:LinkButton>
                                   </td>
                            </tr>
                            <tr><td colspan="3">
                                <asp:GridView DataKeyNames="Id" ID="grdMessages" PageSize="10" runat="server" AutoGenerateColumns="False"
                                                        ShowFooter="True" OnRowDeleting="grdMessages_RowDeleting" OnRowDataBound="grdMessages_RowDataBound"
                                                        CssClass="normalgrey_12" Width="100%" AllowPaging="True" OnPageIndexChanging="grdMessages_PageIndexChanging"
                                                        OnRowCommand="grdMessages_RowCommand" HorizontalAlign="Left">
                                                        <Columns>
                                                            <asp:BoundField HeaderText="PostTitle" DataField="blogTitle">
                                                                <HeaderStyle HorizontalAlign="Center" />
                                                            </asp:BoundField>

                                                            <asp:TemplateField HeaderText="Edit">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton CommandArgument='<%# Eval("ID") %>' CommandName="Editblog" ID="lnkEdit" runat="server"><img src="../Images/editInfo.gif" border="0" alt="Edit Message" />
                                                                    </asp:LinkButton>
                                                                </ItemTemplate>
                                                                <FooterTemplate>
                                                                </FooterTemplate>
                                                                <HeaderStyle Width="15%" HorizontalAlign="Center" />
                                                                <ItemStyle HorizontalAlign="Center" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="Delete">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton CommandArgument="id" CommandName="Delete" ID="lnkDelete" runat="server"><img src="../Images/delete.gif" border="0" alt="Delete Record" /> 
                                                                    </asp:LinkButton>
                                                                </ItemTemplate>
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <HeaderStyle Width="15%" HorizontalAlign="Center" />
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <RowStyle HorizontalAlign="Left" />
                                                        <FooterStyle HorizontalAlign="Left" />

                                                    </asp:GridView>


                                </td></tr>

                        </table>
                    </div>

                    <h5><strong>Note:</strong> Your posting can be viewed by anyone. | <a href="#">Posting guidelines</a></h5>
             <br /> <br />
                </div>
        </div>
    
   
</asp:Content>

